{% for report in reports %}
<tr>
    <td><a href="{{ url_for('reports.item', report_id=report.id)}}">{{report.id}}</a></td>
    <td>{{report.component}}</td>
    <td>
{% if report.crashfn %}
      <div class="crash-fn-container">
        <div class="crash-fn">{{ report.crashfn }}</div>
        <a class="expander" hidden href="#"></a>
      </div>
{% endif %}
    </td>
        {% if not report.archived %}
          <td><span class='label label-info'>{% if report.problem_id %}processed{% else %}new{% endif %}</span></td>
        {% else %}
          <td><span class='label label-warning'>archived</span></td>
        {% endif %}
    <td><span class='label label-default'>{{report.type}}</span></td>
    <td>{{report.last_occurrence.strftime("%Y-%m-%d")}}</td>
    <td>{{report.first_occurrence.strftime("%Y-%m-%d")}}</td>
    <td class="cell-count">{{report.count|readable_int}}</td>
</tr>
{% endfor %}
